<html>
<head><meta charset="utf-8"><title>Appreciation · project-portable-simd · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/index.html">project-portable-simd</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html">Appreciation</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="240413009"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/240413009" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Miguel Raz Guzmán Macedo <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#240413009">(May 27 2021 at 02:06)</a>:</h4>
<p>This started in the Julia Slack as a place to congratulate and compliment the cool stuff being built by cool people - let see if it sticks here too.</p>



<a name="240413294"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/240413294" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Miguel Raz Guzmán Macedo <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#240413294">(May 27 2021 at 02:12)</a>:</h4>
<p>Let me start by saying <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span> to <span class="user-mention" data-user-id="281757">@Jubilee</span> . She's answered so many questions of mine from basic git-foo to complex Rust internals. This project is better for having you in it and I'm thankful whenever you help me learn anything here with saintly patience.</p>



<a name="240416354"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/240416354" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Thom Chiovoloni <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#240416354">(May 27 2021 at 03:19)</a>:</h4>
<p>yeah jubilee is great, definitely a big part of why this project is still on the rails (not to take away from everybody else's hard work at all)</p>



<a name="240420752"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/240420752" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jubilee <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#240420752">(May 27 2021 at 04:57)</a>:</h4>
<p>Thank you... ^^;</p>



<a name="241556983"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/241556983" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Miguel Raz Guzmán Macedo <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#241556983">(Jun 04 2021 at 16:03)</a>:</h4>
<p>I love getting good coding tips from everyone in this chat - I always try to write down all the nuggets and add them to my blog - many of y'all are here now <a href="https://miguelraz.github.io/diary/">https://miguelraz.github.io/diary/</a>, so thanks <span aria-label="heart" class="emoji emoji-2764" role="img" title="heart">:heart:</span></p>



<a name="241557014"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/241557014" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Miguel Raz Guzmán Macedo <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#241557014">(Jun 04 2021 at 16:03)</a>:</h4>
<p>Feels very much like writing essays and polishing drafts over time.</p>



<a name="241557440"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/241557440" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Miguel Raz Guzmán Macedo <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#241557440">(Jun 04 2021 at 16:06)</a>:</h4>
<p>(unfortunately the Rust formatting is borked but it should be fixed soonish...)</p>



<a name="241559608"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/241559608" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#241559608">(Jun 04 2021 at 16:22)</a>:</h4>
<p>Well, here's a bit of a follow-up nugget.</p>
<blockquote>
<p>Probs worth using HashMap::with_capacity(4) since I know there's only ACTG as keys.</p>
</blockquote>
<p>You actually don't need to!  The <code>size_hint</code> in <code>['A', 'C', 'T', 'G'].iter().map(|n| (*n, 0)).collect()</code> is going to be accurate -- the slice iter is known to be 4, and <code>map</code> is size-hint-preserving, so the collect will see that it's going to be <code>(4, Some(4))</code>, and pre-allocate the <code>HashMap</code> accordingly.</p>



<a name="241560017"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/241560017" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Miguel Raz Guzmán Macedo <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#241560017">(Jun 04 2021 at 16:25)</a>:</h4>
<p>OOooh that's neat.</p>



<a name="241560134"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/241560134" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Miguel Raz Guzmán Macedo <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#241560134">(Jun 04 2021 at 16:26)</a>:</h4>
<p>So I think I need to read a deeper guide into exactly how Iterators are managed down the compilation pipeline because I have no mental model of what information gets carried + exploited for optims and what doesn't.</p>



<a name="241560240"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/241560240" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#241560240">(Jun 04 2021 at 16:27)</a>:</h4>
<p>It's basically all library code.</p>
<p><code>Map</code>, for example, implements <code>size_hint</code> by returning that of the inner iterator: <a href="https://doc.rust-lang.org/nightly/src/core/iter/adapters/map.rs.html#105">https://doc.rust-lang.org/nightly/src/core/iter/adapters/map.rs.html#105</a></p>



<a name="241560365"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/241560365" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> scottmcm <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#241560365">(Jun 04 2021 at 16:28)</a>:</h4>
<p>Whereas <code>Filter</code> can't preserve the lower bound: <a href="https://doc.rust-lang.org/nightly/src/core/iter/adapters/filter.rs.html#60">https://doc.rust-lang.org/nightly/src/core/iter/adapters/filter.rs.html#60</a></p>



<a name="241561273"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257879-project-portable-simd/topic/Appreciation/near/241561273" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Miguel Raz Guzmán Macedo <a href="https://rust-lang.github.io/zulip_archive/stream/257879-project-portable-simd/topic/Appreciation.html#241561273">(Jun 04 2021 at 16:34)</a>:</h4>
<p>Wow that is I think the first time I look inside of Rust's code. That is gnarly.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>